package com.hilon.foundation.base;
import com.hilon.foundation.para.ConditionPara;
import com.hilon.foundation.util.ResultBean;

import java.util.List;

public interface BaseService<T,V> {

    ResultBean<String> append(T entity);
    ResultBean<String> deleteById(Long idPara);
    ResultBean<String> deleteByIds(List<Long> ids);
    ResultBean<String> edit(T entity);
    ResultBean<V> findById(Long idPara);
    ResultBean<List<V>> findAll();
    ResultBean<List<V>> findByCondition(ConditionPara conditionPara);
    ResultBean<List<V>> findAllWithDeleted();
}
